package com.cherkashyn.vitaliy.devices.ethernet.socket3.commands.info;

public class CommandInputGet extends CommandInformationMain{
    public static enum Status{
	OPEN((byte)1),
	CLOSE((byte)0);
	
	private final byte value;
	
	Status(byte value){
	    this.value=value;
	}
	
	public static Status getStatus(byte searchValue){
	    for(Status status:values()){
		if(status.value==searchValue){
		    return status;
		}
	    }
	    return null;
	}
    }
    
    
    @Override
    protected int getInformationByte() {
	return 2;
    }
    
}